package com.health.db.dao.user.impl;


import java.util.List;

import com.health.db.dao.ServiceInterface;
import com.health.db.dao.user.IGoodsDataUserDao;
import com.health.db.mapper.GoodsDataUserMapper;
import com.health.db.model.GoodsDataUser;
import com.health.db.model.GoodsDataUserExample;

/**
 * 缓存未做
 * @author YC
 *
 */
public class GoodsDataUserDaoImpl extends ServiceInterface implements IGoodsDataUserDao{

	private  GoodsDataUserMapper goodsDataUserMapper;



	public GoodsDataUserMapper getGoodsDataUserMapper() {
		return goodsDataUserMapper;
	}

	public void setGoodsDataUserMapper(GoodsDataUserMapper goodsDataUserMapper) {
		this.goodsDataUserMapper = goodsDataUserMapper;
	}

	@Override
	public int insert(GoodsDataUser record) {
		// TODO Auto-generated method stub
		return goodsDataUserMapper.insert(record);
	}

	@Override
	public void insertBatch(List<GoodsDataUser> list) {
		// TODO Auto-generated method stub
		goodsDataUserMapper.insertBatch(list);
		
	}

	@Override
	public int insertSelective(GoodsDataUser record) {
		// TODO Auto-generated method stub
		return goodsDataUserMapper.insertSelective(record);
	}
	
	/**
	 * recId 主键
	 */
	@Override
	public GoodsDataUser selectDetialByPrimaryKey(Long recid) {
		// TODO Auto-generated method stub
		return goodsDataUserMapper.selectDetialByPrimaryKey(recid);
	}

	/**
	 * example  object
	 *   {
	 *    Offset  分页偏移   
	 *    PageSize 分页数量 
	 *    ownerId  归属userId
	 *    OperFlag 状态
	 *   }
	 */
	@Override
	public List<GoodsDataUser> selectByExample(GoodsDataUserExample example) {
		// TODO Auto-generated method stub
		return goodsDataUserMapper.selectByExample(example);
	}

	@Override
	public int updateByPrimaryKeySelective(GoodsDataUser record) {
		// TODO Auto-generated method stub
		return goodsDataUserMapper.updateByPrimaryKeySelective(record);
	}

	/**
	 * recId 主键
	 * @param recid
	 * @return
	 */
	@Override
	public GoodsDataUser selectSimpleGoodsDataUser(Long recid) {
		// TODO Auto-generated method stub
		return goodsDataUserMapper.selectByPrimaryKey(recid);
	}

}
